<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
       
       /*喇叭花数*/
 
       /*求出阶乘*/
       function factor(number)
       {
           var factorial = 1;
 
		   for(var i = 1; i <= number; i++)
		   {
			   factorial *= i;
		   }
 
		   return factorial;
	   }
       
     for (var i = 100 ; i <= 999 ; i++)
       {
           var str = i.toString();
 
		   var hund = parseInt(str.charAt(0));
		   var ten = parseInt(str.charAt(1));
		   var unit = parseInt(str.charAt(2));
 
		   if(factor(hund) + factor(ten) + factor(unit) == i)
		   {
			   console.log(i);
		   }
       }
    </script>
  </script>
</head>
<body>
  
</body>
</html>